<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>{% block title %}Welcome!{% endblock %}</title>
        {% block stylesheets %}{% endblock %}
        <style>
            .goods{
                width: 100px;
                border: 1px solid red;
                margin: 10px 20px 10px 20px;
                float: left;
            }
        </style>
    </head>
    <body>
    {% for key,val in goods %}
        <div class="goods">
            <h1>{{ val.goods_name }}</h1>
            <h2>数量有限 赶紧抢购</h2>
            <a href="{{ path('goods_attr') }}?goodsId={{ val.id }}">开始抢购</a>
        </div>
    {% endfor %}
    <div style="clear: both"></div>
    <hr>
    <a href="{{ path('export') }}?goodsId=1">导出小米订单数据</a>
    <a href="{{ path('export') }}?goodsId=2">导出华为订单数据</a>
    <a href="{{ path('export') }}?goodsId=0">导出所有订单数据</a>
    <a href="{{ path('list') }}">查看订单列表</a>
    </body>
</html>
